package designpatterns.obsever.code;

/**
 * 天气变更事件
 */
public class WeatherChangeEvent {
    // 温度
    private Float temperature;
    // 湿度
    private Float humidity;

    public WeatherChangeEvent(Float temperature, Float humidity) {
        this.temperature = temperature;
        this.humidity = humidity;
    }

    public Float getTemperature() {
        return temperature;
    }

    public void setTemperature(Float temperature) {
        this.temperature = temperature;
    }

    public Float getHumidity() {
        return humidity;
    }

    public void setHumidity(Float humidity) {
        this.humidity = humidity;
    }



}
